﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ITAP.ShprossesBuilder.Modelling;
using ITAP.Core.Modelling;

namespace ITAP.ShprossesBuilder.Editor
{
    public partial class AlignShprossesByAngleForm : Form
    {
        public Angle Angle
        {
            get
            {
                return new Angle((double)numericUpDownAngle.Value * Math.PI / 180);
            }
        }
        public AlignShprossesByAngleForm()
        {
            InitializeComponent();
        }

        private void AlignShprossesByAngleForm_Load(object sender, EventArgs e)
        {

        }

        private void buttonOK_Click(object sender, EventArgs e)
        {

        }

        private void numericUpDownAngle_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }
    }
}
